#objdump: -dr --prefix-addresses -mmips:3000
#name: MIPS sb
#as: -32 -mips1

# Test the sb macro.

.*: +file format .*mips.*

Disassembly of section .text:
0+0000 <[^>]*> sb	a0,0\(zero\)
0+0004 <[^>]*> sb	a0,1\(zero\)
0+0008 <[^>]*> lui	at,0x1
0+000c <[^>]*> sb	a0,-32768\(at\)
0+0010 <[^>]*> sb	a0,-32768\(zero\)
0+0014 <[^>]*> lui	at,0x1
0+0018 <[^>]*> sb	a0,0\(at\)
0+001c <[^>]*> lui	at,0x2
0+0020 <[^>]*> sb	a0,-23131\(at\)
0+0024 <[^>]*> sb	a0,0\(a1\)
0+0028 <[^>]*> sb	a0,1\(a1\)
0+002c <[^>]*> lui	at,0x1
0+0030 <[^>]*> addu	at,at,a1
0+0034 <[^>]*> sb	a0,-32768\(at\)
0+0038 <[^>]*> sb	a0,-32768\(a1\)
0+003c <[^>]*> lui	at,0x1
0+0040 <[^>]*> addu	at,at,a1
0+0044 <[^>]*> sb	a0,0\(at\)
0+0048 <[^>]*> lui	at,0x2
0+004c <[^>]*> addu	at,at,a1
0+0050 <[^>]*> sb	a0,-23131\(at\)
0+0054 <[^>]*> lui	at,0x0
[ 	]*54: R_MIPS_HI16	\.data
0+0058 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*58: R_MIPS_LO16	\.data
0+005c <[^>]*> lui	at,0x0
[ 	]*5c: R_MIPS_HI16	big_external_data_label
0+0060 <[^>]*> sb	a0,0\(at\)
[ 	]*60: R_MIPS_LO16	big_external_data_label
0+0064 <[^>]*> sb	a0,0\(gp\)
[ 	]*64: R_MIPS_GPREL16	small_external_data_label
0+0068 <[^>]*> lui	at,0x0
[ 	]*68: R_MIPS_HI16	big_external_common
0+006c <[^>]*> sb	a0,0\(at\)
[ 	]*6c: R_MIPS_LO16	big_external_common
0+0070 <[^>]*> sb	a0,0\(gp\)
[ 	]*70: R_MIPS_GPREL16	small_external_common
0+0074 <[^>]*> lui	at,0x0
[ 	]*74: R_MIPS_HI16	\.bss
0+0078 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*78: R_MIPS_LO16	\.bss
0+007c <[^>]*> sb	a0,[-0-9]+\(gp\)
[ 	]*7c: R_MIPS_GPREL16	\.sbss
0+0080 <[^>]*> lui	at,0x0
[ 	]*80: R_MIPS_HI16	\.data
0+0084 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*84: R_MIPS_LO16	\.data
0+0088 <[^>]*> lui	at,0x0
[ 	]*88: R_MIPS_HI16	big_external_data_label
0+008c <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*8c: R_MIPS_LO16	big_external_data_label
0+0090 <[^>]*> sb	a0,1\(gp\)
[ 	]*90: R_MIPS_GPREL16	small_external_data_label
0+0094 <[^>]*> lui	at,0x0
[ 	]*94: R_MIPS_HI16	big_external_common
0+0098 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*98: R_MIPS_LO16	big_external_common
0+009c <[^>]*> sb	a0,1\(gp\)
[ 	]*9c: R_MIPS_GPREL16	small_external_common
0+00a0 <[^>]*> lui	at,0x0
[ 	]*a0: R_MIPS_HI16	\.bss
0+00a4 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*a4: R_MIPS_LO16	\.bss
0+00a8 <[^>]*> sb	a0,[-0-9]+\(gp\)
[ 	]*a8: R_MIPS_GPREL16	\.sbss
0+00ac <[^>]*> lui	at,[-0-9x]+
[ 	]*ac: R_MIPS_HI16	\.data
0+00b0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*b0: R_MIPS_LO16	\.data
0+00b4 <[^>]*> lui	at,[-0-9x]+
[ 	]*b4: R_MIPS_HI16	big_external_data_label
0+00b8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*b8: R_MIPS_LO16	big_external_data_label
0+00bc <[^>]*> lui	at,[-0-9x]+
[ 	]*bc: R_MIPS_HI16	small_external_data_label
0+00c0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*c0: R_MIPS_LO16	small_external_data_label
0+00c4 <[^>]*> lui	at,[-0-9x]+
[ 	]*c4: R_MIPS_HI16	big_external_common
0+00c8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*c8: R_MIPS_LO16	big_external_common
0+00cc <[^>]*> lui	at,[-0-9x]+
[ 	]*cc: R_MIPS_HI16	small_external_common
0+00d0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*d0: R_MIPS_LO16	small_external_common
0+00d4 <[^>]*> lui	at,[-0-9x]+
[ 	]*d4: R_MIPS_HI16	\.bss
0+00d8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*d8: R_MIPS_LO16	\.bss
0+00dc <[^>]*> lui	at,[-0-9x]+
[ 	]*dc: R_MIPS_HI16	\.sbss
0+00e0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*e0: R_MIPS_LO16	\.sbss
0+00e4 <[^>]*> lui	at,0x0
[ 	]*e4: R_MIPS_HI16	\.data
0+00e8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*e8: R_MIPS_LO16	\.data
0+00ec <[^>]*> lui	at,0x0
[ 	]*ec: R_MIPS_HI16	big_external_data_label
0+00f0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*f0: R_MIPS_LO16	big_external_data_label
0+00f4 <[^>]*> lui	at,0x0
[ 	]*f4: R_MIPS_HI16	small_external_data_label
0+00f8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*f8: R_MIPS_LO16	small_external_data_label
0+00fc <[^>]*> lui	at,0x0
[ 	]*fc: R_MIPS_HI16	big_external_common
0+0100 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*100: R_MIPS_LO16	big_external_common
0+0104 <[^>]*> lui	at,0x0
[ 	]*104: R_MIPS_HI16	small_external_common
0+0108 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*108: R_MIPS_LO16	small_external_common
0+010c <[^>]*> lui	at,0x0
[ 	]*10c: R_MIPS_HI16	\.bss
0+0110 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*110: R_MIPS_LO16	\.bss
0+0114 <[^>]*> lui	at,0x0
[ 	]*114: R_MIPS_HI16	\.sbss
0+0118 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*118: R_MIPS_LO16	\.sbss
0+011c <[^>]*> lui	at,[-0-9x]+
[ 	]*11c: R_MIPS_HI16	\.data
0+0120 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*120: R_MIPS_LO16	\.data
0+0124 <[^>]*> lui	at,[-0-9x]+
[ 	]*124: R_MIPS_HI16	big_external_data_label
0+0128 <[^>]*> sb	a0,0\(at\)
[ 	]*128: R_MIPS_LO16	big_external_data_label
0+012c <[^>]*> lui	at,[-0-9x]+
[ 	]*12c: R_MIPS_HI16	small_external_data_label
0+0130 <[^>]*> sb	a0,0\(at\)
[ 	]*130: R_MIPS_LO16	small_external_data_label
0+0134 <[^>]*> lui	at,[-0-9x]+
[ 	]*134: R_MIPS_HI16	big_external_common
0+0138 <[^>]*> sb	a0,0\(at\)
[ 	]*138: R_MIPS_LO16	big_external_common
0+013c <[^>]*> lui	at,[-0-9x]+
[ 	]*13c: R_MIPS_HI16	small_external_common
0+0140 <[^>]*> sb	a0,0\(at\)
[ 	]*140: R_MIPS_LO16	small_external_common
0+0144 <[^>]*> lui	at,[-0-9x]+
[ 	]*144: R_MIPS_HI16	\.bss
0+0148 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*148: R_MIPS_LO16	\.bss
0+014c <[^>]*> lui	at,[-0-9x]+
[ 	]*14c: R_MIPS_HI16	\.sbss
0+0150 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*150: R_MIPS_LO16	\.sbss
0+0154 <[^>]*> lui	at,[-0-9x]+
[ 	]*154: R_MIPS_HI16	\.data
0+0158 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*158: R_MIPS_LO16	\.data
0+015c <[^>]*> lui	at,[-0-9x]+
[ 	]*15c: R_MIPS_HI16	big_external_data_label
0+0160 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*160: R_MIPS_LO16	big_external_data_label
0+0164 <[^>]*> lui	at,[-0-9x]+
[ 	]*164: R_MIPS_HI16	small_external_data_label
0+0168 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*168: R_MIPS_LO16	small_external_data_label
0+016c <[^>]*> lui	at,[-0-9x]+
[ 	]*16c: R_MIPS_HI16	big_external_common
0+0170 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*170: R_MIPS_LO16	big_external_common
0+0174 <[^>]*> lui	at,[-0-9x]+
[ 	]*174: R_MIPS_HI16	small_external_common
0+0178 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*178: R_MIPS_LO16	small_external_common
0+017c <[^>]*> lui	at,[-0-9x]+
[ 	]*17c: R_MIPS_HI16	\.bss
0+0180 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*180: R_MIPS_LO16	\.bss
0+0184 <[^>]*> lui	at,[-0-9x]+
[ 	]*184: R_MIPS_HI16	\.sbss
0+0188 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*188: R_MIPS_LO16	\.sbss
0+018c <[^>]*> lui	at,0x0
[ 	]*18c: R_MIPS_HI16	\.data
0+0190 <[^>]*> addu	at,at,a1
0+0194 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*194: R_MIPS_LO16	\.data
0+0198 <[^>]*> lui	at,0x0
[ 	]*198: R_MIPS_HI16	big_external_data_label
0+019c <[^>]*> addu	at,at,a1
0+01a0 <[^>]*> sb	a0,0\(at\)
[ 	]*1a0: R_MIPS_LO16	big_external_data_label
0+01a4 <[^>]*> addu	at,a1,gp
0+01a8 <[^>]*> sb	a0,0\(at\)
[ 	]*1a8: R_MIPS_GPREL16	small_external_data_label
0+01ac <[^>]*> lui	at,0x0
[ 	]*1ac: R_MIPS_HI16	big_external_common
0+01b0 <[^>]*> addu	at,at,a1
0+01b4 <[^>]*> sb	a0,0\(at\)
[ 	]*1b4: R_MIPS_LO16	big_external_common
0+01b8 <[^>]*> addu	at,a1,gp
0+01bc <[^>]*> sb	a0,0\(at\)
[ 	]*1bc: R_MIPS_GPREL16	small_external_common
0+01c0 <[^>]*> lui	at,0x0
[ 	]*1c0: R_MIPS_HI16	\.bss
0+01c4 <[^>]*> addu	at,at,a1
0+01c8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*1c8: R_MIPS_LO16	\.bss
0+01cc <[^>]*> addu	at,a1,gp
0+01d0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*1d0: R_MIPS_GPREL16	\.sbss
0+01d4 <[^>]*> lui	at,0x0
[ 	]*1d4: R_MIPS_HI16	\.data
0+01d8 <[^>]*> addu	at,at,a1
0+01dc <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*1dc: R_MIPS_LO16	\.data
0+01e0 <[^>]*> lui	at,0x0
[ 	]*1e0: R_MIPS_HI16	big_external_data_label
0+01e4 <[^>]*> addu	at,at,a1
0+01e8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*1e8: R_MIPS_LO16	big_external_data_label
0+01ec <[^>]*> addu	at,a1,gp
0+01f0 <[^>]*> sb	a0,1\(at\)
[ 	]*1f0: R_MIPS_GPREL16	small_external_data_label
0+01f4 <[^>]*> lui	at,0x0
[ 	]*1f4: R_MIPS_HI16	big_external_common
0+01f8 <[^>]*> addu	at,at,a1
0+01fc <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*1fc: R_MIPS_LO16	big_external_common
0+0200 <[^>]*> addu	at,a1,gp
0+0204 <[^>]*> sb	a0,1\(at\)
[ 	]*204: R_MIPS_GPREL16	small_external_common
0+0208 <[^>]*> lui	at,0x0
[ 	]*208: R_MIPS_HI16	\.bss
0+020c <[^>]*> addu	at,at,a1
0+0210 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*210: R_MIPS_LO16	\.bss
0+0214 <[^>]*> addu	at,a1,gp
0+0218 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*218: R_MIPS_GPREL16	\.sbss
0+021c <[^>]*> lui	at,[-0-9x]+
[ 	]*21c: R_MIPS_HI16	\.data
0+0220 <[^>]*> addu	at,at,a1
0+0224 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*224: R_MIPS_LO16	\.data
0+0228 <[^>]*> lui	at,[-0-9x]+
[ 	]*228: R_MIPS_HI16	big_external_data_label
0+022c <[^>]*> addu	at,at,a1
0+0230 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*230: R_MIPS_LO16	big_external_data_label
0+0234 <[^>]*> lui	at,[-0-9x]+
[ 	]*234: R_MIPS_HI16	small_external_data_label
0+0238 <[^>]*> addu	at,at,a1
0+023c <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*23c: R_MIPS_LO16	small_external_data_label
0+0240 <[^>]*> lui	at,[-0-9x]+
[ 	]*240: R_MIPS_HI16	big_external_common
0+0244 <[^>]*> addu	at,at,a1
0+0248 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*248: R_MIPS_LO16	big_external_common
0+024c <[^>]*> lui	at,[-0-9x]+
[ 	]*24c: R_MIPS_HI16	small_external_common
0+0250 <[^>]*> addu	at,at,a1
0+0254 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*254: R_MIPS_LO16	small_external_common
0+0258 <[^>]*> lui	at,[-0-9x]+
[ 	]*258: R_MIPS_HI16	\.bss
0+025c <[^>]*> addu	at,at,a1
0+0260 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*260: R_MIPS_LO16	\.bss
0+0264 <[^>]*> lui	at,[-0-9x]+
[ 	]*264: R_MIPS_HI16	\.sbss
0+0268 <[^>]*> addu	at,at,a1
0+026c <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*26c: R_MIPS_LO16	\.sbss
0+0270 <[^>]*> lui	at,0x0
[ 	]*270: R_MIPS_HI16	\.data
0+0274 <[^>]*> addu	at,at,a1
0+0278 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*278: R_MIPS_LO16	\.data
0+027c <[^>]*> lui	at,0x0
[ 	]*27c: R_MIPS_HI16	big_external_data_label
0+0280 <[^>]*> addu	at,at,a1
0+0284 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*284: R_MIPS_LO16	big_external_data_label
0+0288 <[^>]*> lui	at,0x0
[ 	]*288: R_MIPS_HI16	small_external_data_label
0+028c <[^>]*> addu	at,at,a1
0+0290 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*290: R_MIPS_LO16	small_external_data_label
0+0294 <[^>]*> lui	at,0x0
[ 	]*294: R_MIPS_HI16	big_external_common
0+0298 <[^>]*> addu	at,at,a1
0+029c <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*29c: R_MIPS_LO16	big_external_common
0+02a0 <[^>]*> lui	at,0x0
[ 	]*2a0: R_MIPS_HI16	small_external_common
0+02a4 <[^>]*> addu	at,at,a1
0+02a8 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*2a8: R_MIPS_LO16	small_external_common
0+02ac <[^>]*> lui	at,0x0
[ 	]*2ac: R_MIPS_HI16	\.bss
0+02b0 <[^>]*> addu	at,at,a1
0+02b4 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*2b4: R_MIPS_LO16	\.bss
0+02b8 <[^>]*> lui	at,0x0
[ 	]*2b8: R_MIPS_HI16	\.sbss
0+02bc <[^>]*> addu	at,at,a1
0+02c0 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*2c0: R_MIPS_LO16	\.sbss
0+02c4 <[^>]*> lui	at,[-0-9x]+
[ 	]*2c4: R_MIPS_HI16	\.data
0+02c8 <[^>]*> addu	at,at,a1
0+02cc <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*2cc: R_MIPS_LO16	\.data
0+02d0 <[^>]*> lui	at,[-0-9x]+
[ 	]*2d0: R_MIPS_HI16	big_external_data_label
0+02d4 <[^>]*> addu	at,at,a1
0+02d8 <[^>]*> sb	a0,0\(at\)
[ 	]*2d8: R_MIPS_LO16	big_external_data_label
0+02dc <[^>]*> lui	at,[-0-9x]+
[ 	]*2dc: R_MIPS_HI16	small_external_data_label
0+02e0 <[^>]*> addu	at,at,a1
0+02e4 <[^>]*> sb	a0,0\(at\)
[ 	]*2e4: R_MIPS_LO16	small_external_data_label
0+02e8 <[^>]*> lui	at,[-0-9x]+
[ 	]*2e8: R_MIPS_HI16	big_external_common
0+02ec <[^>]*> addu	at,at,a1
0+02f0 <[^>]*> sb	a0,0\(at\)
[ 	]*2f0: R_MIPS_LO16	big_external_common
0+02f4 <[^>]*> lui	at,[-0-9x]+
[ 	]*2f4: R_MIPS_HI16	small_external_common
0+02f8 <[^>]*> addu	at,at,a1
0+02fc <[^>]*> sb	a0,0\(at\)
[ 	]*2fc: R_MIPS_LO16	small_external_common
0+0300 <[^>]*> lui	at,[-0-9x]+
[ 	]*300: R_MIPS_HI16	\.bss
0+0304 <[^>]*> addu	at,at,a1
0+0308 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*308: R_MIPS_LO16	\.bss
0+030c <[^>]*> lui	at,[-0-9x]+
[ 	]*30c: R_MIPS_HI16	\.sbss
0+0310 <[^>]*> addu	at,at,a1
0+0314 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*314: R_MIPS_LO16	\.sbss
0+0318 <[^>]*> lui	at,[-0-9x]+
[ 	]*318: R_MIPS_HI16	\.data
0+031c <[^>]*> addu	at,at,a1
0+0320 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*320: R_MIPS_LO16	\.data
0+0324 <[^>]*> lui	at,[-0-9x]+
[ 	]*324: R_MIPS_HI16	big_external_data_label
0+0328 <[^>]*> addu	at,at,a1
0+032c <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*32c: R_MIPS_LO16	big_external_data_label
0+0330 <[^>]*> lui	at,[-0-9x]+
[ 	]*330: R_MIPS_HI16	small_external_data_label
0+0334 <[^>]*> addu	at,at,a1
0+0338 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*338: R_MIPS_LO16	small_external_data_label
0+033c <[^>]*> lui	at,[-0-9x]+
[ 	]*33c: R_MIPS_HI16	big_external_common
0+0340 <[^>]*> addu	at,at,a1
0+0344 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*344: R_MIPS_LO16	big_external_common
0+0348 <[^>]*> lui	at,[-0-9x]+
[ 	]*348: R_MIPS_HI16	small_external_common
0+034c <[^>]*> addu	at,at,a1
0+0350 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*350: R_MIPS_LO16	small_external_common
0+0354 <[^>]*> lui	at,[-0-9x]+
[ 	]*354: R_MIPS_HI16	\.bss
0+0358 <[^>]*> addu	at,at,a1
0+035c <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*35c: R_MIPS_LO16	\.bss
0+0360 <[^>]*> lui	at,[-0-9x]+
[ 	]*360: R_MIPS_HI16	\.sbss
0+0364 <[^>]*> addu	at,at,a1
0+0368 <[^>]*> sb	a0,[-0-9]+\(at\)
[ 	]*368: R_MIPS_LO16	\.sbss
0+036c <[^>]*> sw	a0,0\(zero\)
0+0370 <[^>]*> sw	a1,4\(zero\)
0+0374 <[^>]*> sh	a0,0\(zero\)
0+0378 <[^>]*> sw	a0,0\(zero\)
0+037c <[^>]*> swc0	c0_context,0\(zero\)
0+0380 <[^>]*> swc1	\$f4,0\(zero\)
0+0384 <[^>]*> swc2	\$4,0\(zero\)
0+0388 <[^>]*> swc3	\$4,0\(zero\)
0+038c <[^>]*> swc1	\$f4,0\(zero\)
0+0390 <[^>]*> swl	a0,0\(zero\)
0+0394 <[^>]*> swr	a0,0\(zero\)
	...
